package com.itheima.method;

public class MethodDemo7 {
    public static void main(String[] args) {
        int[] arr = {231,44};
        change(arr);
        System.out.println(arr[0]);
        System.out.println(arr[1]);

    }
    public static void change(int[] arr){

        if(arr[0]>arr[1]){
            int a = arr[0];
            arr[0]=arr[1];
            arr[1]=a;
        }
    }
}
